package com.data.unityplugin_market

import android.content.Intent
import android.databinding.DataBindingUtil
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.data.unityplugin_market.base.BaseActivity
import com.data.unityplugin_market.business.center.PersonalCenterActivity
import com.data.unityplugin_market.business.shoppingcart.ShoppingCartActivity


class MainActivity : AppCompatActivity() {



    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

    }

    fun doClick(view :View){
        var intent = Intent(this,ShoppingCartActivity::class.java);
        intent.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK
        startActivity(intent)

    }

    fun personal(view: View){
        var intent = Intent(this,PersonalCenterActivity::class.java);
        intent.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK
        startActivity(intent)
    }

}
